//
//  ViewController.swift
//  ChatDemo
//
//  Created by 范强伟 on 2024/5/7.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        view.addSubview(tap)
        tap.snp.makeConstraints { make in
            make.center.equalToSuperview()
            make.size.equalTo(100)
        }
        
        
        // Do any additional setup after loading the view.
    }
    
    lazy var tap: UIButton = {
        let view = UIButton()
        view.backgroundColor = .systemBlue
        view.setTitleColor(.white, for: .normal)
        view.setTitle("聊天", for: .normal)
        view.addTarget(self, action: #selector(leftClickAction), for: .touchUpInside)
        return view
    }()

    @objc func leftClickAction(){
        let nav = UINavigationController(rootViewController: RSMessageListViewController())
        mWindow()?.rootViewController = nav
//        nav.modalPresentationStyle = .overFullScreen
//        self.present(nav, animated: false)
    }

}

